package com.repair.base.utils;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

/**
 * @author chunyu
 * @since 2024/10/18,20:00
 */
public class DateToLocalDateTimeUtil {

    public static LocalDateTime convert(Date date) {
        return date.toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();
    }

}
